/*
 * Copyright (c) 2006, 2023, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

/**
 * <p>Project: jse2302 - Op
 * <p>Powered by webrx On 2023-06-14 11:17:29
 * <p>Created by IntelliJ IDEA
 *
 * @author  webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class Op {
    public static void main(String[] args) {
        // 三元运算符 ? :
        String info = true ? "yes" : "no";
        System.out.println(info);

        int num = !!!false ? 10 : 20;
        System.out.println(num);

        System.out.println(Math.random() > .5 ? "java" : "php");

        String t = "";
        if (3 == 3) {
            t = "yes";
        } else {
            t = "no";
        }
        System.out.println(t);


        System.out.println(3 == 3 ? "yes" : "no");
        int recordcount = 55;
        int pagesize = 7;
        int pagecount = recordcount % pagesize == 0 ? recordcount / pagesize : recordcount / pagesize + 1;
        System.out.println(pagecount);
    }
}
